package com.ptswitch.material.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.impl.ContractSupplierDao;
import com.ptswitch.material.model.contract.ContractSupplier;
import com.ptswitch.material.service.ContractSupplierService;

@Service
public class ContractSupplierServiceImpl implements ContractSupplierService {

    @Resource
    private ContractSupplierDao contractSupplierDao;

    public List<String> findAllName() {
        return contractSupplierDao.findAllName();
    }

    @Override
    public List<ContractSupplier> findAll(long first, long size) {
        return contractSupplierDao.findAll(first, size);
    }

    @Override
    public long countAll() {
        return contractSupplierDao.countAll();
    }

    @Override
    public void save(ContractSupplier model) {
        contractSupplierDao.save(model);
    }

}
